/**
 * Created by Lee on 2019/1/8.
 */
function test(a,{name,age}){
    console.log(name);
}
test(5,{name:'wang',age:89});
var o1 = {a:1,b:1};
var o2 = {b:2,c:2};
var o3 = {c:3};
Object.assign(o1,o2,o3);
console.log(o1);